Maximum stress in a beam with uniform load supported at both ends can be calculated as
σ = y F L / 4 I
where
σ = maximum stress (Pa (N/m2), N/mm2, psi)
y = Perpendicular distance from to neutral axis (m, mm, in)
F = load (N, lb)
L = length of beam (m, mm, in)
I = moment of Inertia (m4,mm4, in4)